import React from 'react'
import { Input } from 'antd';
import PropTypes from 'prop-types'
const { Search } = Input;

const FileSearch = ({ onFileSearch }: {
    onFileSearch: (value: string) => void
}) => {
    return (
        <>
            <div className="seach_index">
                <Search
                    placeholder="输入关键字按回车键搜索"
                    onSearch={(value) => { onFileSearch(value) }}

                />

            </div>
        </>
    )
}
FileSearch.propTypes = {

    onFileSearch: PropTypes.func.isRequired

}

export default FileSearch